<!-- if $_ptype -->
<div class="param">
	<div class="clearfix">
		<!-- if $_param_edit -->
			<!-- if $_pname -->
			<div style="margin-bottom:5px;float:left;">
				<select name="ele_{$_rs.identifier}" id="ele_{$_rs.identifier}">
					<option value="">请选择…</option>
					<!-- loop from=$_pname key=$key value=$value -->
					<option value="{$value}">{$value}</option>
					<!-- /loop -->
				</select>
			</div>
			<!-- else -->
			<input type="hidden" name="ele_{$_rs.identifier}" id="ele_{$_rs.identifier}" value="" />
			<!-- /if -->
			<div style="margin:3px 0 5px 5px;float:left;"><input type="button" value="添加一列" class="layui-btn layui-btn-sm" onclick="$.phpok_form_param.add_ele_mul('{$_rs.identifier}','{$_rs.width}')" /></div>
		<!-- /if -->
		<!-- if $_rs.p_line -->
		<div style="margin:3px 0 5px 5px;float:left;"><input type="button" value="添加一行" class="layui-btn layui-btn-sm" onclick="$.phpok_form_param.add_line('{$_rs.identifier}','{$_rs.p_name_type}','{$_rs.width}')" /></div>
		<!-- /if -->
	</div>
	<div id="list_{$_rs.identifier}">
		<table class="layui-table" id="{$_rs.identifier}_tbl">
		<thead>
		<tr>
			<!-- if $_rs.p_line --><th width="50">操作</th><!-- /if -->
			<!-- loop from=$_rslist.title key=$key value=$value -->
				<!-- if $_param_edit -->
				<th>
					<input type="text" name="{$_rs.identifier}_title[]" class="layui-input" value="{$value}" />
					<div style="position: absolute;top:5px;right:5px;" title="{lang删除}" onclick="$.phpok_form_param.delete_one('{$_rs.identifier}',this)"><i class="layui-icon layui-icon-close-fill"></i></div>
				</th>
				<!-- else -->
				<th>{$value}<input type="hidden" name="{$_rs.identifier}_title[]" value="{$value}" /></th>
				<!-- /if -->
			<!-- /loop -->
		</tr>
		</thead>
		<!-- loop from=$_rslist.content key=$key value=$value id=idx -->
		<tr>
			<!-- if $_rs.p_line --><td><input type="button" value="{lang删除}" onclick="$.phpok_form_param.delete_line(this)" class="layui-btn layui-btn-sm layui-btn-danger" /></td><!-- /if -->
			<!-- loop from=$value key=$k value=$v id=idxx -->
			<td>
				<!-- if $_rs.lock_row && $idxx.num == $_rs.lock_row -->
				{$v}<input type="hidden" name="{$_rs.identifier}_body[]" value="{$v}" />
				<!-- else -->
				<input type="text" name="{$_rs.identifier}_body[]" class="layui-input" value="{$v}" />
				<!-- /if -->
			</td>
			<!-- /loop -->
			<!-- for($i=$idxx.total;$i<$_rslist.count;$i++) -->
			<td>
				<!-- if !$_rs.lock_row || ($_rs.lock_row && ($i+1) != $_rs.lock_row) -->
				<input type="text" name="{$_rs.identifier}_body[]" class="layui-input" value="" />
				<!-- /if -->
			</td>
			<!-- /for -->
		</tr>
		<!-- /loop -->
		</table>
	</div>
	<div class="clear"></div>
</div>
<!-- else -->
<div class="param">
	<!-- if $_param_edit -->
	<div style="margin-bottom:10px;">
		<!-- if $_pname -->
		<select name="ele_{$_rs.identifier}" id="ele_{$_rs.identifier}" lay-ignore>
			<option value="">请选择…</option>
			<!-- loop from=$_pname key=$key value=$value -->
			<option value="{$value}">{$value}</option>
			<!-- /loop -->
		</select>
		<!-- else -->
		<input type="hidden" name="ele_{$_rs.identifier}" id="ele_{$_rs.identifier}" value="" />
		<!-- /if -->
		<input type="button" value="{lang添加属性}" class="layui-btn layui-btn-sm" onclick="$.phpok_form_param.add_ele_single('{$_rs.identifier}','{$_rs.width}')" />
		<!-- if $_rs.note -->
		<span style="color:gray;font-style:italic">{$_rs.note}</span>
		<!-- /if -->
	</div>
	<!-- /if -->
	<div id="list_{$_rs.identifier}">
		<!-- loop from=$_rslist.title key=$key value=$value -->
		<div style="margin-bottom:10px;">
			<ul class="layout">
				<!-- if $_param_edit -->
				<li><input type="text" name="{$_rs.identifier}_title[]" class="layui-input" value="{$value}"/></li>
				<!-- else -->
				<li><input type="text" value="{$value}" class="layui-input" disabled /><input type="hidden" name="{$_rs.identifier}_title[]" id="" value="{$value}" /></li>
				<!-- /if -->
				<li><input type="text" name="{$_rs.identifier}_body[]" class="layui-input" value="{$_rslist.content[$key]}"/></li>
				<!-- if $_param_edit --><li><input type="button" value="{lang删除}" class="layui-btn layui-btn-sm layui-btn-danger" onclick="$.phpok_form_param.delete_line_single(this)" /></li><!-- /if -->
			</ul>
			<div class="clear"></div>
		</div>
		<!-- /loop -->
	</div>
	<div class="clear"></div>
</div>
<!-- /if -->
<!-- if $_rs.js_admin -->
<script type="text/javascript">
$(document).ready(function(){
	{$_rs.js_admin}
});
</script>
<!-- /if -->